package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2019-11-06
 */
public class Permission extends Model<Permission> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 权限所属组
     */
    private String groupName;

    /**
     * 名称
     */
    private String name;

    /**
     * 权限代码
     */
    private String code;

    /**
     * 权限描述
     */
    private String description;

    /**
     * time
     */
    private Date time;

    public Permission() {
    }

    public Permission(String id, String name, String code, Date time, String groupName) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.time = time;
        this.groupName = groupName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Permission{" +
            "id=" + id +
            ", groupName=" + groupName +
            ", name=" + name +
            ", code=" + code +
            ", description=" + description +
            ", time=" + time +
        "}";
    }
}
